<script>
import { findIndex } from 'lodash'
import { computed, defineComponent } from 'vue'

export default defineComponent({
  props: {
    list: {
      type: Array,
      default: () => {
        return []
      },
    },
  },
  setup(props, context) {
    let list = computed(() => {
      return props.list
    })

    return { list }
  },
  render() {
    return (
      <div>
        <a-tree
          treeData={this.list}
          checkable={true}
          selectable={false}
        ></a-tree>
      </div>
    )
  },
})
</script>
